<%@page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib uri="TowkerTagLib" prefix="rbac"%>
<%@include file="/commons/include/html_doctype.html" %>
<html>
<head>
<title>批量修改物料单价</title>
<%@include file="/commons/include/upd.jsp" %>
<script type="text/javascript">
$(function(){
	
	jQuery("#dataForm").validate(
	{
		rules: {
			jprice:{ required:true, number : true },
			tprice_ratio:{ required:true, number : true },
			bprice_ratio:{ required:true, number : true },
			wprice_ratio:{ required:true, number : true },
			sprice_ratio:{ required:true, number : true }
		},
		messages: {
			jprice:{ required:"请填写产品计划单价" },
			tprice_ratio:{ required:"请填写产品调拨价" },
			bprice_ratio:{ required:"请填写产品商业价" },
			wprice_ratio:{ required:"请填写产品批发价" },
			sprice_ratio:{ required:"请填写产品零售价" }
		},
		submitHandler:function(form)
		{
			jQuery(form).ajaxSubmit(_options);
		}
	});
});
validCallBack = function()
{
	//添加页面自定义校验
	
	return true;
};
_callback = function() {
	location.href = ctx + "/manage/basicData/getGoods.htm";
}
function searchGoods() {
	var data = {
		type_id : $('#type_id').val(),
		class_id : $('#class_id').val(),
		goods_sn : $('#goods_sn1').val(),
		goods_sn2 : $('#goods_sn2').val()
	};
	$.getJSON(ctx + '/basicData/getGoodsBybatch.htm', data, function() {
									 
									 
	});
}
</script>
</head> 
<body>
<table border="0" cellspacing="0" cellpadding="0" class="listLogo">
	<tr>
		<td class="title">批量修改物料单价</td>
		<td>
			<div class="menuTool">
			<a class="save" id="dataFormSave" href="#">批量修改</a>
            <a class="back" onClick="javascript:history.back();" href="#">返回</a>
			</div>
		</td>
	</tr>
</table>
<div class="line"></div>
<form id="dataForm" method="post" action="batchUpdJprice2.htm">
<table border="0" cellspacing="1" cellpadding="0" class="listTable">
	<tr>
		<td width="150" class="form_title">品种代码：</td>
		<td class="form_input"><input name="goods_sn1" class="input" id="goods_sn1" value="" size="10" /> - <input name="goods_sn2" class="input" id="goods_sn2" value="" size="10" /></td>
	</tr>
	<tr>
		<td class="form_title">品种大类号：</td>
		<td class="form_input">
		<select id="type_id" name="type_id">
			<option value="1" <c:if test="${po.type_id==1 }">selected="selected"</c:if> >原材料</option>
			<option value="2" <c:if test="${po.type_id==2 }">selected="selected"</c:if> >自制半成品</option>
			<option value="3" <c:if test="${po.type_id==3 }">selected="selected"</c:if> >对外销售产品</option>
		</select>
		</td>
	</tr>
	<tr>
	  <td class="form_title"><span class="input">品种小类：</span></td>
	  <td class="form_input"><span class="input">
	    <select id="class_id" name="class_id">
	      <option value="" >请选择</option>
	      <c:forEach items="${goodsClassList}" var="d" varStatus="status">
	        <option value="${d.id}">${d.class_name}</option>
          </c:forEach>
        </select>
	    <!--<input type="button" name="button" id="button" class="button" value="查询" onClick="searchGoods()">-->
	  </span></td>
    </tr>
	<tr>
		<td class="form_title">产品计划单价：</td>
		<td class="form_input"><input name="jprice" type="text" id="jprice" size="10" /></td>
	</tr>
	<tr>
		<td class="form_title">产品调拨价：</td>
		<td class="form_input">计划单价 * <input type="text" id="tprice_ratio" name="tprice_ratio" size="5" />
		  %</td>
	</tr>
	<tr>
	  <td class="form_title">产品商业价：</td>
	  <td class="form_input">计划单价 * <input type="text" id="bprice_ratio" name="bprice_ratio" size="5" />
	  %</td>
    </tr>
	<tr>
	  <td class="form_title">产品批发价：</td>
	  <td class="form_input">计划单价 * <input type="text" id="wprice_ratio" name="wprice_ratio" size="5" />
	  %</td>
    </tr>
	<tr>
	  <td class="form_title">产品零售价：</td>
	  <td class="form_input">计划单价 * <input type="text" id="sprice_ratio" name="sprice_ratio" size="5" />
	  %</td>
    </tr>
	<tr>
		<td class="form_title">&nbsp;</td>
		<td class="form_input">&nbsp;</td>
	</tr>
</table>
</form>
<div class="line"></div>
<!--<table border="0" cellspacing="1" cellpadding="0" class="listTable">
	<tr class="list_title">
		<td>品种代码</td>
		<td>品种名称</td>
		<td>计划单价</td>
		<td>调拨价</td>
		<td>商业价</td>
		<td>批发价</td>
		<td>零售价</td>
		<td>产品单位</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
    </tr>
</table>-->
</body>
</html>
